<template>
  <div>
    {{ posture.name }}
  </div>
</template>
<script setup>

import { onMounted, ref } from 'vue'
import { api } from 'boot/axios'
import { useAPIStore } from 'stores/api'

const posture = ref({})
const props = defineProps({
  id: {
    type: String
  }
})

onMounted(getPosture)

function getPosture () {
  api.get(useAPIStore().postureUrl + 'posture/id/' + props.id).then(rs => {
    posture.value = rs.data
  })
}

</script>
<style scoped>

</style>
